package com.leoman.spinningmachine.tab3;

import android.widget.TextView;

import com.leoman.helper.adapter.BaseRecyclerAdapter;
import com.leoman.spinningmachine.R;
import com.leoman.spinningmachine.bean.PermissionBean;

import java.util.List;

/**
 * Created by Administrator on 2018-05-07.
 */
public class PermissionAdapter extends BaseRecyclerAdapter<PermissionBean>{

    public PermissionAdapter(int layoutResId, List data) {
        super(layoutResId, data);
    }

    @Override
    protected void bindTheData(BaseViewHolder holder, PermissionBean bean, int position) {
        TextView title = (TextView) holder.findViewById(R.id.permission_title);
        TextView convert = (TextView) holder.findViewById(R.id.permission_convert);
        title.setText(""+bean.getName());
        convert.setText(""+bean.getDescription());
    }
}
